<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List,java.util.Map;" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> 
<table cellpadding="0" cellspacing="0" border="0" class="datatable" id="example">
	<thead>
		<tr>
		<th><c:if test="${p eq 'todo' }">待办</c:if><c:if test="${p eq 'did' }">已办</c:if>事宜</th>
		<th>处理日期</th>
		<th>操作</th>
		</tr>
	</thead>
	<tbody>
	<c:set var="f" value="1" />
	<c:forEach var="e" items="${list }">
	<tr class='grade<c:if test="${f%2==0}">B</c:if><c:if test="${f%2!=0}">A</c:if>'>
		<td>${e.e_title}</td>
		<td>${e.e_update_date }</td>
		<td>
		<c:choose>
			<c:when test="${p eq 'todo' }">
				<button class="btn btn-small btn-primary edit" href="<%=request.getContextPath()%>/c?s=wf&o=deal&t=${p }&e_id=${e.e_id}"><i class="icon-pencil"></i></button>
			</c:when>
			<c:when test="${p ne 'todo' }">
				<button class="btn btn-small btn-danger detail" href="<%=request.getContextPath()%>/c?s=tpl&log=1&o=detail&e_id=${e.e_id}&m_id=${e.e_model_id }&t=${p }&key=${e.e_ref_id}"><i class="icon-search"></i></button>		
			</c:when>
		</c:choose>
		</td>
	</tr>
	</c:forEach>
	</tbody>
</table>
<script>
$(".datatable").dataTable(datatable_config);
</script>